package com.jagochan.module.rbac.sys_user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jagochan.module.rbac.sys_user.domain.SysUser;
import org.springframework.security.crypto.password.PasswordEncoder;

public interface SysUserService extends IService<SysUser> {
    void saveUserWithRole(SysUser sysUser);

    void updateUserWithRole(SysUser sysUser);

    void removeUserWithRole(Long userId);

    boolean resetPassword(Long userId, PasswordEncoder passwordEncoder);
}
